package com.yunchao.library.socket.metrics

import com.yunchao.library.socket.config.Message
import com.yunchao.library.socket.config.MessageHeader
import com.yunchao.library.socket.enum.ConnectionEvent

interface SocketMetrics {
    fun recordMessageSent(header: MessageHeader, bodyBytes: ByteArray)
    fun recordMessageReceived(message: Message)
    fun recordChunkSent(offset: Int, chunkSize: Int, bodyBytes: ByteArray)
    fun recordConnectionEvent(event: ConnectionEvent)
}